package com.asohofrucol.model;

import java.io.Serializable;
import javax.persistence.*;
import java.util.Date;
import java.util.List;


/**
 * The persistent class for the form_answer database table.
 * 
 */
@Entity
@Table(name="form_answer")
public class FormAnswer implements Serializable {
	private static final long serialVersionUID = 1L;

	@Id
	private Long id;

	@Temporal(TemporalType.TIMESTAMP)
	@Column(name="modified_date")
	private Date modifiedDate;

	@Column(name="modifier_user")
	private String modifierUser;

	private String status;

	//bi-directional many-to-one association to Form
	@ManyToOne
	@JoinColumn(name="id_form")
	private Form form;

	//bi-directional many-to-one association to FormFieldInputAnswer
	@OneToMany(mappedBy="formAnswer")
	private List<FormFieldInputAnswer> formFieldInputAnswers;

	public FormAnswer() {
	}

	public Long getId() {
		return this.id;
	}

	public void setId(Long id) {
		this.id = id;
	}

	public Date getModifiedDate() {
		return this.modifiedDate;
	}

	public void setModifiedDate(Date modifiedDate) {
		this.modifiedDate = modifiedDate;
	}

	public String getModifierUser() {
		return this.modifierUser;
	}

	public void setModifierUser(String modifierUser) {
		this.modifierUser = modifierUser;
	}

	public String getStatus() {
		return this.status;
	}

	public void setStatus(String status) {
		this.status = status;
	}

	public Form getForm() {
		return this.form;
	}

	public void setForm(Form form) {
		this.form = form;
	}

	public List<FormFieldInputAnswer> getFormFieldInputAnswers() {
		return this.formFieldInputAnswers;
	}

	public void setFormFieldInputAnswers(List<FormFieldInputAnswer> formFieldInputAnswers) {
		this.formFieldInputAnswers = formFieldInputAnswers;
	}

}